<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
<div id="#app">
        <h1>姓名:{{name}}</h1>
        <h1>身高:{{len}}</h1>
        <h1>其他:{{other.weight}}</h1>
        <h1>姓名:<input type="text" v-model="name"></h1>
        <h1>体重:<input type="text" v-model="other.weight"></h1>
</div>
<script src="MyVue.js"></script>
<script>
    const vm = new MyVue({
        el:"#app",
        data:{
            name:"zhangsan",
            len:180,
            other:{
                weight:20,
                age:20
            }
        }
    })
    //vm 原型上 没有get 和 set
    // vm 原型的原型上有 get和set
    console.log(2,vm)
</script>
</body>
</html>